<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

require '../../model-db-connection/config.php';

$tCode = $_POST['teamCode'];

$sqlGetMemEmail = "SELECT * FROM QRC_MEMBERS WHERE memID LIKE ("
        . "SELECT tLead_memid from QRC_TEAM_BUILDER WHERE tCode LIKE '" . $tCode . "');";
$queryResult = mysql_query($sqlGetMemEmail);
$resultSet = mysql_fetch_assoc($queryResult);

echo $resultSet['memEmail'];
